import requests
# frida -U -f com.chaozh.iReaderFree15 -l hook.js -o demo.txt
# frida -U -F 爱读掌阅" -l hook.js -o demo.txt
# console.log(Java.use("android.util.Log").getStackTraceString(Java.use("java.lang.Exception").$new()));

headers = {"Host": "uc.ireader.com", "User-Agent": "okhttp/3.11.0"}
url = "https://uc.ireader.com/user/slogin/passwd/v2"
params = {
    "zyeid": "024701e196f148209f25a17fb575a25a",
    "usr": "i4851891348",
    "rgt": "7",
    "p1": "ffffffffffffffffffffffff",
    "pc": "10",
    "p2": "116678",
    "p3": "17980103",
    "p4": "501603",
    "p5": "19",
    "p7": "__d6acef6180c865d5",
    "p9": "2",
    "p16": "23013RK75C",
    "p21": "3",
    "p22": "13",
    "p25": "79804",
    "p28": "",
    "p29": "zye5b814",
    "p30": "",
    "p31": "__d6acef6180c865d5",
    "p33": "com.chaozh.iReaderFree15",
    "p34": "Redmi",
}
data = {
    "channel_id": "116678",
    "is_mergeme": "1",
    "encrypt_method": "1",
    "device": "23013RK75C",
    "version_id": "17980103",
    "ver": "1.0",
    "data": '{"AesKey":"f9kHbKKvEX5qVzW+Tj0qgGKMhS+7\\/4ZjIiFzcSOzDPwmTdgpVjTIZivlzdnZZDk1hdyUOfoT3drPhJ3JIdywS7M+qwZaoEy+I6uYLIPB9SCqoNWdb8sbPdASK+DyLnEiLl9+CVGNLwtBrkvu992VSqO2F\\/3LXC+n9SYCuMDwMWQ=","Data":"6BfzGXCtk7TzNvFkzb9x1rGg3G8I3ugdQKC3ECQEQsQNwJYVf01KAMntosP6FH8\\/vqYr+K0tXm8PptbIPPFmOA=="}',
    "imei": "__d6acef6180c865d5",
    "sign": "wRCRA1fcOdTPr7q4fsPCDP3GvFmIBocyQvB2/aaO7XbV5o0bOCsEqVYabSCndBRiTwBZzmz5IEvaXmFFDoOWxYqCouZBCmx35zcjJvjgx8aKwFXLZAwdbPJvA0OqgBHqfIRyRAASylymdzkhx1bHhnMUhyvags8xyWUh0DojmiQ=",
    "timestamp": "1753943626996",
}
response = requests.post(url, headers=headers, params=params, data=data)

print(response.text)
print(response)
